import java.io.UnsupportedEncodingException;

public class D {
	public static void main(String[] args) throws UnsupportedEncodingException {
		String s="1;;192.168.1.2;5050;60";
		String apn = s.split(";")[1];
		byte b[] = apn.getBytes("ascii");
		System.out.println(b.length);
		
		String ss = "5182000,4320,, ";
		System.out.println(ss.split(",").length);
	}
}
